package org.xdj.blue.java.io.server;

/**
 * socket服务端启动
 * @author 91power—xdj
 *
 */
public class Server {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		serverStart();
	}

	/**
	 * demo-socket服务端启动
	 * @throws Exception
	 */
	private static void serverStart() throws Exception{
		MyServerSocket myServerSocket = new MyServerSocket(9010);
		Thread server = new Thread(myServerSocket);
		server.start();
		System.out.println("---socketServer启动成功---");
		server.join();
	} 
}
